package com.chuangjiangx.member.manager.client.web.basic.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * 修改会员手机号码接口参数
 * Created by YangKuo on 2017/9/22.
 */
@Getter
@Setter
@ApiModel(value = "修改会员手机号码接口参数")
public class UpdatePhoneRequest {

    /**
     * 会员id
     */
    @ApiModelProperty(value = "会员id")
    @NotNull(message = "{memberId.null}")
    private Long memberId;

    /**
     * 手机号
     */
    @ApiModelProperty(value = "手机号")
    @Length(min = 11, max = 11, message = "{mobilePhone.size}")
    @NotBlank(message = "{mobilePhone.null}")
    private String mobile;

    /**
     * 验证码
     */
    @ApiModelProperty(value = "验证码")
    @NotBlank(message = "{verifyCode.null}")
    private String verifyCode;

}
